package com.wang.study.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 验证码发送记录
 * </p>
 *
 * @author mark
 * @since 2020-06-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TbSmsVerify对象", description = "验证码发送记录")
public class TbSmsVerify implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "sms_verify_id", type = IdType.AUTO)
    private Integer smsVerifyId;

    @ApiModelProperty(value = "短信编号（可以自己生成，也可以第三方复返回）")
    private String smsId;

    @ApiModelProperty(value = "电话号码")
    private String mobile;

    @ApiModelProperty(value = "验证码")
    private String smsVerify;

    @ApiModelProperty(value = "验证码类型（1：登录验证，2：注册验证，3：忘记密码，4：修改账号）")
    private Integer smsType;

    @ApiModelProperty(value = "发送时间")
    @TableField(fill = FieldFill.INSERT)
    private Long createTime;


}
